package com.wuye.model.customer;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by zhanchi on 2016/7/1.
 */
@Entity
@Table(name="wuye_userOption")
public class UserOption implements Serializable{
    public String toString() {
        try {
            return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
        } catch (Exception e) {
            return e.getMessage();
        }
    }
    @Id
    @Column(name="wuye_userOption_id")
    private Integer upId;
    @Column(name="wuye_userOption_uid")
    private Integer upUid;
    @Column(name="wuye_userOption_cusId")
    private Integer upCusid;
    @Column(name="wuye_userOption_subTime")
    private String upSubtime;//提交问卷时间
    @Column(name="wuye_userOption_userName")
    private String upUsername;
    @Column(name="wuye_userOption_telphone")
    private String telphone;
    @Column(name="wuye_userOption_company")
    private String upCompany;
    @Column(name="wuye_userOption_isWritten")
    private String isWritten;
    @Column(name="wuye_userOption_isIn")
    private String isIn;
    @Column(name="wuye_userOption_ortherSuggest")
    private String otherSuggest;
    @Column(name="wuye_userOption_suggest")
    private String suggest;

    public Integer getUpId() {
        return upId;
    }

    public void setUpId(Integer upId) {
        this.upId = upId;
    }

    public Integer getUpUid() {
        return upUid;
    }

    public void setUpUid(Integer upUid) {
        this.upUid = upUid;
    }

    public Integer getUpCusid() {
        return upCusid;
    }

    public void setUpCusid(Integer upCusid) {
        this.upCusid = upCusid;
    }

    public String getUpSubtime() {
        return upSubtime;
    }

    public void setUpSubtime(String upSubtime) {
        this.upSubtime = upSubtime;
    }

    public String getUpUsername() {
        return upUsername;
    }

    public void setUpUsername(String upUsername) {
        this.upUsername = upUsername;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public String getUpCompany() {
        return upCompany;
    }

    public void setUpCompany(String upCompany) {
        this.upCompany = upCompany;
    }

    public String getIsWritten() {
        return isWritten;
    }

    public void setIsWritten(String isWritten) {
        this.isWritten = isWritten;
    }

    public String getIsIn() {
        return isIn;
    }

    public void setIsIn(String isIn) {
        this.isIn = isIn;
    }

    public String getOtherSuggest() {
        return otherSuggest;
    }

    public void setOtherSuggest(String otherSuggest) {
        this.otherSuggest = otherSuggest;
    }

    public String getSuggest() {
        return suggest;
    }

    public void setSuggest(String suggest) {
        this.suggest = suggest;
    }

    public UserOption(Integer upId, Integer upUid, Integer upCusid, String upSubtime, String upUsername, String telphone, String upCompany, String isWritten, String isIn, String otherSuggest, String suggest) {
        this.upId = upId;
        this.upUid = upUid;
        this.upCusid = upCusid;
        this.upSubtime = upSubtime;
        this.upUsername = upUsername;
        this.telphone = telphone;
        this.upCompany = upCompany;
        this.isWritten = isWritten;
        this.isIn = isIn;
        this.otherSuggest = otherSuggest;
        this.suggest = suggest;
    }

    public UserOption() {
    }
}
